<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>物业管理软件</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="description" content="Charisma, a fully featured, responsive, HTML5, Bootstrap admin template.">
	<meta name="author" content="Muhammad Usman">

	<#include "*/pubcss.ftl">	
</head>

<body>
	<#include "*/top.ftl">
	<!-- topbar ends -->
	<div class="container-fluid">
		<div class="row-fluid">
			<#include "*/left.ftl">
			<div id="content" class="span10">
			<!-- content starts -->
			<div>
				<ul class="breadcrumb">
					<li>
						<a href="#">仪表管理</a> <span class="divider">/</span>
					</li>
					<li>
						<a href="#">电表读数</a>
					</li>
				</ul>
			</div>
		    <div class="row-fluid sortable">
				<div class="box span2">
					<div class="box-header well">
						<h2><i class="icon-edit"></i>套户菜单</h2>
					</div>
					<div class="box-content">
						 <div class="zTreeDemoBackground left">
						    <ul id="menup" class="ztree"></ul>
						 </div>
					</div>
				</div><!--/span-->
				<div class="box span10">
					<div class="box-header well">
						<h2><i class="icon-edit"></i>电表信息</h2>
					</div>
					<form class="form-horizontal" id="anmeterread"  action="javascript:saveAnmeterRead()">
					<div class="box-content">

						<button type="submit" class="btn btn-primary" id="addLeaf" onclick="">抄表入库</button>
						<table class="table table-bordered table-striped table-condensed">
						  <thead>
						      <tr>
								  <th class="center">抄表日期</th>
								  <th colspan="2">
								  <input class="input-small focused" readonly id="unitid" name="unitid" type="hidden" value="${(unitid)?if_exists}">
								  <input class="input-small focused" readonly id="ctime" name="ctime" type="text" value="${(currentTime)?if_exists}">
								  <img onclick="WdatePicker({el:'ctime', isShowToday: true})" src="${base}/script/mydate97/skin/datePicker.gif" width="16" height="22" align="absmiddle">
								  </th>
								  <th class="center">记账月份</th>
								  <th colspan="2">
								  <input class="input-small focused" readonly id="ymonth" name="ymonth" type="text" value="<#if (ymonth)?if_exists!=''>${(ymonth)?if_exists}<#else>${(currentMonth)?if_exists}</#if>">
								  <img onclick="WdatePicker({onpicked:function(dp){showDateRead();},el:'ymonth',dateFmt: 'yyyy-MM', isShowToday: true})" src="${base}/script/mydate97/skin/datePicker.gif" width="16" height="22" align="absmiddle">
								  </th>
							  </tr>
							  <tr>
								  <th>表号</th>
								  <th>上期读数</th>
								  <th>本期读数</th>
								  <th>走表量</th>
								  <th>附加量</th>
								  <th>计费量</th>
							  </tr>
						  </thead>   
						  <tbody>
						    <#assign index=0>
						    <#list (vos)?if_exists as vo>
							<tr id="displayrow">
								<td class="center">
								    <input class="input-small focused" id="focusedInput" name="vos[${index}].amrcodes" type="hidden" value="${(vo.amrcodes)?if_exists}">
									<input class="input-small focused" id="focusedInput" name="vos[${index}].code" type="hidden" value="${(vo.code)?if_exists}">
									<input class="input-small focused" id="focusedInput" name="vos[${index}].snum" readonly type="text" value="${(vo.snum)?if_exists}">
									<input class="input-small focused" id="focusedInput" name="vos[${index}].rids" type="hidden" value="${(vo.rids)?if_exists}">
									<input class="input-small focused" id="focusedInput" name="vos[${index}].compares" type="hidden" value="${(vo.compares)?if_exists}">
									<input class="input-small focused" id="focusedInput" name="vos[${index}].states" type="hidden" value="${(vo.states)?if_exists}">
									<input class="input-small focused" id="focusedInput" name="vos[${index}].state" type="hidden" value="${(vo.state)?if_exists}">
								</td>
								<td class="center"><input class="input-small focused" readonly id="thereadings" name="vos[${index}].thereadings" type="text" value="${(vo.thereadings)?if_exists}"></td>
								<td class="center"><input class="input-small focused" <#if vo.state=='1'>readonly</#if> id="currentreading" oninput="countmeter(this);" type="text" name="vos[${index}].currentreading" value="${(vo.currentreading)?if_exists}"></td>
								<td class="center"><input class="input-small focused" readonly id="walkquantity" type="text" name="vos[${index}].walkquantity" value="${(vo.walkquantity)?if_exists}"></td>
								<td class="center"><input class="input-small focused" <#if vo.state=='1'>readonly</#if> id="amount" type="text" oninput="countmeter(this);" name="vos[${index}].amount" value="${(vo.amount)?if_exists}"></td>
								<td class="center"><input class="input-small focused" readonly id="charge" type="text" name="vos[${index}].charge" value="${(vo.charge)?if_exists}"></td>
							</tr>
							<#assign index=index+1>
							</#list>
						  </tbody>
					  </table>
					</div>
				</div><!--/span-->
			</div><!--/row-->
		    </form>
		  
       
			<!-- content ends -->
			</div><!--/#content.span10-->
		</div><!--/fluid-row-->

		
	</div><!--/.fluid-container-->

	<#include "*/infotemplate/alert.ftl">
    <#include "*/infotemplate/saveinfo.ftl">
	<#include "*/pubjs.ftl">
	<script src='${base}/script/dashboard/anmeter_read_manager.js'></script>	
	<script src='${base}/script/number.js'></script>	
	
		
</body>
</html>
